<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:c="http://java.sun.com/jsp/jstl/core"
      xmlns:f="http://java.sun.com/jsf/core">
    <link type="text/css" rel="stylesheet" href="../style.css" />
    <h:head>
        <title>Login page</title>
    </h:head>
    <h:body styleClass="form">
        <h:form >
            <h1>Login page</h1>
            <p><br/><br/></p>
            <h:panelGrid columns="2">
                <h:outputLabel for="userName" value="Username" />
                <h:inputText id="userName" value="#{login.userName}" />

                <h:outputLabel for="password" value="Password" />
                <h:inputSecret id="password" value="#{login.password}" />

                <h:outputText value="" />
                <h:panelGrid columns="2">
                    <h:commandButton id="submit" value="Submit" action="#{login.loginUser()}"/>
                </h:panelGrid>
            </h:panelGrid>
        </h:form>

    </h:body>
</html>

